package factory;

import dao.StudentDao;
import dao.StudentDaoImp;
import dao.UserDao;
import dao.UserDaoImp;

public class DaoFactory {
    /**
     * 通过静态工厂方法模式来实现UserDao实现类对象的创建并返回
     * @return
     */
    public static UserDao getUserDao(){
        return new UserDaoImp();
    }

    /**
     * 通过静态工厂方法模式来实现StudentDao实现类对象的创建并返回
     * @return
     */
    public static StudentDao getStudentDao(){
        return new StudentDaoImp();
    }
}
